@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Playfair+Display:wght@700;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --accent: #c9a84c;
  --accent-dark: #a07e2e;
  --accent-warm: #8b6914;
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border: #2a2a2a;
  --border-accent: #3a3a3a;
  --warehouse-wood: #3d2b1f;
  --warehouse-dust: rgba(201, 168, 76, 0.04);
  --status-waiting: #666666;
  --status-review: #c9a84c;
  --status-verify: #4a7ec9;
  --status-complete: #4a9e6e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* ── Panels ── */
.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.panel-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 2rem;
}

.panel-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Panel: Hero — 창고 입구 ── */
.panel-hero {
  background: var(--bg-primary);
}

.panel-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(61, 43, 31, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(61, 43, 31, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.panel-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
  pointer-events: none;
  z-index: 1;
}

/* 먼지 파티클 */
.dust-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.dust {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  animation: dustFloat linear infinite;
}

@keyframes dustFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.label-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.display-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.display-title-sm {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Typography ── */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.body-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.body-text-center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.center-block {
  text-align: center;
  margin-bottom: 4rem;
}

/* ── Split Layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* ── Panel: About ── */
.panel-about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  min-height: auto;
}

.warning-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.2rem 1.5rem;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid var(--accent);
  margin-top: 1rem;
}

.warning-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.6;
}

.warning-badge span:last-child {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Panel: Shelves — 창고 선반 ── */
/* ── Panel: Bookshelf — 자료 책장 ── */
.panel-shelves {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  min-height: auto;
}

.bookshelf {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.bookshelf-row {
  margin-bottom: 0rem;
}

.books-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 1.5rem 2rem 0;
  min-height: 260px;
}

.shelf-board {
  height: 18px;
  background: linear-gradient(180deg, #5a3d2b 0%, #3d2b1f 40%, #2a1c13 100%);
  border-radius: 0 0 3px 3px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(90, 61, 43, 0.6);
  position: relative;
}

.shelf-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
}

/* ── Book base ── */
.book {
  position: relative;
  width: 120px;
  height: 220px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.book:hover {
  transform: translateY(-12px) rotateY(-25deg);
  z-index: 10;
}

/* ── Book spine (default view) ── */
.book-spine {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0.5rem;
  border-radius: 3px 0 0 3px;
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset -2px 0 6px rgba(0, 0, 0, 0.4),
    2px 0 8px rgba(0, 0, 0, 0.3);
  backface-visibility: hidden;
  transition: box-shadow 0.4s;
}

.book:hover .book-spine {
  box-shadow:
    inset -2px 0 6px rgba(0, 0, 0, 0.4),
    4px 4px 16px rgba(0, 0, 0, 0.5);
}

.book-spine-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.book-spine-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.book-spine-icon {
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ── Book front (revealed on hover) ── */
.book-front {
  display: none;
}

/* ── Book Popup (3x3 grid slider) ── */
.book-popup {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%) scale(0.95);
  width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.08);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.book-popup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.book.popup-open .book-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}

.popup-tag {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
}

.popup-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.popup-close:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.8rem;
  min-height: 240px;
}

.popup-card {
  padding: 0.6rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: default;
  transition: border-color 0.3s, transform 0.3s;
}

.popup-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.popup-card .card-era {
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.popup-card .card-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.popup-card .card-summary {
  font-size: 0.58rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}

.popup-card .card-origin {
  font-size: 0.48rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.popup-card .card-credibility {
  display: flex;
  gap: 2px;
}

.popup-card .cred-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

.popup-card .cred-dot.filled {
  background: var(--accent);
}

.popup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
}

.popup-empty span {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.popup-empty p {
  font-size: 0.75rem;
  margin: 0;
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
}

.popup-prev,
.popup-next {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.popup-prev:hover:not(:disabled),
.popup-next:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
}

.popup-prev:disabled,
.popup-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.popup-page-info {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  min-width: 40px;
  text-align: center;
}

/* ── Book color themes ── */
.book-a .book-spine {
  background: linear-gradient(180deg, #4a3528 0%, #3d2b1f 50%, #2e1f15 100%);
}
.book-b .book-spine {
  background: linear-gradient(180deg, #2b3a4a 0%, #1f2d3d 50%, #152230 100%);
}
.book-c .book-spine {
  background: linear-gradient(180deg, #3a2b4a 0%, #2d1f3d 50%, #221530 100%);
}
.book-d .book-spine {
  background: linear-gradient(180deg, #2b4a3a 0%, #1f3d2d 50%, #153022 100%);
}
.book-e .book-spine {
  background: linear-gradient(180deg, #4a4a2b 0%, #3d3d1f 50%, #302e15 100%);
}
.book-f .book-spine {
  background: linear-gradient(180deg, #4a2b2b 0%, #3d1f1f 50%, #301515 100%);
}

/* ── Panel: Process — 검증 파이프라인 ── */
.panel-process {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  min-height: auto;
}

.process-pipeline {
  max-width: 700px;
  margin: 0 auto;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.pipeline-step:hover {
  border-color: var(--accent);
}

.pipe-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.pipe-content {
  flex: 1;
}

.pipe-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pipe-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pipe-status {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid;
  align-self: center;
}

.status-warehouse {
  color: var(--status-waiting);
  border-color: var(--status-waiting);
}

.status-review {
  color: var(--status-review);
  border-color: var(--status-review);
}

.status-verify {
  color: var(--status-verify);
  border-color: var(--status-verify);
}

.status-complete {
  color: var(--status-complete);
  border-color: var(--status-complete);
}

.pipe-connector {
  width: 1px;
  height: 30px;
  background: var(--border-accent);
  margin: 0 auto;
}

/* ── Panel: Status — 창고 현황판 ── */
.panel-status {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  min-height: auto;
}

.status-board {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.status-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: none;
}

.status-cell {
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.status-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 168, 76, 0.04);
}

.count-cell {
  text-align: center;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid;
}

.tag-waiting {
  color: var(--status-waiting);
  border-color: var(--status-waiting);
}

.tag-active {
  color: var(--status-review);
  border-color: var(--status-review);
}

.tag-review {
  color: var(--status-review);
  border-color: var(--status-review);
}

.tag-verify {
  color: var(--status-verify);
  border-color: var(--status-verify);
}

.tag-complete {
  color: var(--status-complete);
  border-color: var(--status-complete);
}

/* Status toggle button */
.status-toggle-btn {
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: all 0.25s ease;
  position: relative;
}

.status-toggle-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.3);
}

.status-toggle-btn:active {
  transform: scale(0.95);
}

/* Count cell animation */
.count-cell.has-count {
  color: var(--accent);
  font-weight: 600;
}

/* ── Status Category Hover Tooltip ── */
.status-category-cell {
  position: relative;
  cursor: pointer;
}

.category-label {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.status-category-cell:hover .category-label {
  color: var(--accent);
  border-color: var(--accent);
}

.status-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: 300px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.status-category-cell:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.status-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}

.status-tooltip-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.05);
}

.tooltip-cat-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.tooltip-cat-en {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-tooltip-body {
  padding: 0.5rem 0;
  max-height: 200px;
  overflow-y: auto;
}

.status-tooltip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease;
}

.status-tooltip-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tooltip-item-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.tooltip-item-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.status-tooltip-empty {
  padding: 1.2rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-tooltip-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.5px;
}

.warehouse-notice {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.2rem 1.5rem;
  background: rgba(61, 43, 31, 0.1);
  border: 1px dashed rgba(61, 43, 31, 0.3);
  text-align: center;
}

.warehouse-notice p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Panel: CTA ── */
.panel-cta {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-cta:hover {
  background: transparent;
  color: var(--accent);
}

.btn-cta-outline {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-cta-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .books-container {
    flex-wrap: wrap;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 1rem 0;
  }

  .book {
    width: 100px;
    height: 180px;
  }

  .book-front {
    display: none;
  }

  .status-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .status-cell {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }

  .pipeline-step {
    flex-direction: column;
    gap: 1rem;
  }

  .pipe-status {
    align-self: flex-start;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .panel-inner {
    padding: 80px 1.2rem;
  }

  .books-container {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: auto;
    padding: 0.8rem 0.8rem 0;
  }

  .book {
    width: 80px;
    height: 160px;
  }

  .book-spine-title {
    font-size: 0.7rem;
  }
}

/* ── Popup responsive ── */
@media (max-width: 768px) {
  .book-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
  }

  .book-popup::before {
    display: none;
  }

  .book.popup-open .book-popup {
    transform: translate(-50%, -50%) scale(1);
  }

  .popup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .popup-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .book-popup {
    width: 94vw;
  }
}
